/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-04-12
 * Time: 9:46
 */
public class Test {
    public static void main(String[] args) {
        int[] arr = {27, 15, 19, 18, 28, 34, 65, 49, 25, 37};
        Heap heap = new Heap();
        heap.init(arr);
        heap.createHeap();
        heap.show();
        heap.offer(80);
        heap.show();
/*        int ret = heap.poll();
        System.out.println("堆顶元素为:" + ret);
        heap.show();*/
    }
}
